<template>
	<view class="orderList">
		<!-- 搜索输入框 -->
		<view class="searchInput">
			<uni-search-bar :radius="100" @input="search"></uni-search-bar>
		</view>
		<uni-table stripe emptyText="暂无更多数据">
			<!-- 表头行 -->
			<uni-tr>
				<uni-th>单号</uni-th>
				<uni-th>商品简介</uni-th>
				<uni-th>订单状态</uni-th>
				<uni-th>日期</uni-th>
			</uni-tr>
			<!-- 表格数据行 -->
			<uni-tr v-for="item in 5" :key="item" @tap="toOrderDetail(item)">
				<uni-td>1234567</uni-td>
				<uni-td>40度玫瑰汾酒</uni-td>
				<uni-td>库管审批中</uni-td>
				<uni-td>2020-10-20</uni-td>
			</uni-tr>
		</uni-table>
	</view>
</template>

<script>
	export default {
		name: "OrderList",
		methods: {
			search() {},
			toOrderDetail() {
				uni.navigateTo({
					url: "/pages/orderDetail/orderDetail"
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
</style>
